package com.ljf.daily.consumptiondetail.dto.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.dto.query.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 日常消费明细--查询条件  daily_dat_consumption_detail
 *
 * @author LJF
 * @since 2024-05-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("日常消费明细--查询条件")
@EqualsAndHashCode(callSuper = true)
public class DailyDatConsumptionDetailQuery extends PageParam implements Serializable {

    @JsonProperty("belongDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "归属时间")
    private Date belongDate;

    @JsonProperty("belongDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "归属时间(开始)")
    private Date belongDateStart;

    @JsonProperty("belongDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "归属时间(结束)")
    private Date belongDateEnd;

}
